package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PictureAddNewDTO implements Serializable {
    /**
     * 相册id
     */
   @ApiModelProperty(value = "相册id",required = true)
   @NotNull(message="添加相册失败，必须提交相册id")
   private Long albumId;

    /**
     * 图片URL
     */
   @ApiModelProperty(value = "图片URL",required = true)
   @NotNull(message = "添加图片URL失败，必须提交图片URL！")
   private String url;

    /**
     * 图片简介
     */
   @ApiModelProperty(value = "图片简介",required = true)
   //@NotEmpty
   private String  description;

    /**
     * 图片宽度
     */
    @ApiModelProperty(value = "图片宽度",required = true)
    //@NotEmpty
    private Integer  width;

    /**
     * 图片高度
     */
    @ApiModelProperty(value = "图片高度",required = true)
    //@NotEmpty
    private Integer  height;

    /**
     * 是否为封面图片
     */
    @ApiModelProperty(value = "是否为封面图片",required = true)
    //@NotEmpty
    private Integer  isCover;

    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "自定义排序序号",required = true)
    //@NotEmpty
    private Integer  sort;




}

